package com.andlabs.gd.base;

public class Point {
	public float x;
	public float y;
	public long mCellId;
	
	public Point(){
		x = 0;
		y = 0;
	}
	
	public Point(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void set(Point point){
		x = point.x;
		y = point.y;
	}
	
	public float distance(Point point){
		float a = point.x - x;
		float b = point.y - y;
		float cSquare = x * x + y * y;
		
		return (float) Math.sqrt((double) cSquare);		
	}
}
